import COMMON_VALUE from '../Common'
var chefClass = require('ChefClass')

var restaurantClass = cc.Class({
    properties:{
        ctor:function(){
            this.chef = cc.instantiate(chefClass)
            this.floor = arguments[0]
            console.log(arguments[0])
        },
        floor:1,
        resColor:"red",//"red","yellow","blue" 
        restaurantType:{
            default: COMMON_VALUE.RESTAURANT_TYPE.NONE,
            type: COMMON_VALUE.RESTAURANT_TYPE
        },
        chef:{
            default:null,
            type:chefClass,
        },        
        Level:1,


        //以下通随上方数据变化而变化
        gainMultiplierList:{
            default:[],//[cc.v2([发生倍乘的等级，倍乘倍数),……]
            type:Array,
        },//餐厅倍乘等级
        upgradeQualityStar:{
            default:[],
            type:Array,
        },//餐厅升级品质所需要的星星数（木牌/霓虹/铜牌/银牌/金牌/白金/钻石/）
        
        gainBaseNumber:1,
        gainMultiply:1,
        gainMultiplierList:{//[[等级，倍数],[等级，倍数],[等级，倍数]...]
            default:[],
            type:Array,
        },
        //cost //EXP： PerLevel = costMultiply * costBaseNumber ^ level ;
        costBaseNumber:1.07,       
        costMultiply:1,
    },
})
module.exports = restaurantClass